package com.greedy.service;

import com.alibaba.fastjson.JSON;
import com.greedy.bean.pojo.ShopType;
import lombok.extern.slf4j.Slf4j;
import org.n3r.eql.Eql;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-25
 * Description: 店铺
 */
@Slf4j
@Service
public class ShopTypeService {

    /**
     * 查询店铺店铺类型信息
     *
     * @return 店铺信息
     */
    public List<ShopType> getAllShopType() {
        List<ShopType> allShopType = new Eql().select("getAllShopType").returnType(ShopType.class).execute();
        log.info("大白点评-首页初始化-查询店铺店铺类型信息为：{}", JSON.toJSONString(allShopType));
        return allShopType;
    }

}
